from .celery import app
import time


@app.task
def seckill(user_id, good_id):
    # 模拟秒杀延迟
    time.sleep(10)
    return '%s秒杀成功' % user_id
